package model;

import java.awt.Color;

public class GameColor extends Color {

	private static final long serialVersionUID = 1L;
	private int code;
	private String name;

	public GameColor(Color c, String s, int i) {
		super(c.getRGB());
		name = s;
		code = i;
	}

	public GameColor(int r, int g, int b, String s, int i) {
		super(r, g, b);
		name = s;
		code = i;
	}

	public int getCode() {
		return code;
	}

	public String getName() {
		return name;
	}

	public String getShortName() {
		return name.substring(0, 2);
	}

}
